/** Implementation of WordData Class.
 * @file 
 * @author Jeremy Schultz
 */
#include "WordData.h"

using namespace std;

//-----------------------------------------------------------------------------
// Constructor
WordData::WordData(DataType _type)  {
	type = _type;
	constant = false;
}

//-----------------------------------------------------------------------------
// Get the WordData Type
WordData::DataType WordData::Type()	{
	return type;
}

//-----------------------------------------------------------------------------
// Getter - Constant
bool WordData::Constant()	{
	return constant;
}

//-----------------------------------------------------------------------------
// Setter - Constant
void WordData::setConstant(bool _constant)	{
	constant = _constant;
}


//-----------------------------------------------------------------------------
// toString
string WordData::toString()	{
	stringstream ss;

	ss << "type: " << type;
	ss << " const: " << constant;

	return ss.str();
}



